package org.example.jnautil.mouse;

import basicutil.common.Point;
import lombok.extern.slf4j.Slf4j;


@Slf4j
public class HookMouseHandler {
    public static final int KEY_NUMBER = 1024;

    StatelessMouseListener mouseMoveListener;

    boolean acceptMouse(int wParam, int x, int y) {
        if (wParam == MouseCodeName.MOUSEMOVE.code) {
            if (mouseMoveListener != null) {
                mouseMoveListener.onMouse(MouseCodeName.MOUSEMOVE, Point.of(y, x));
            }
        }
        return true;
    }

}
